
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">

	<title>Class Opencart\Admin\Model\Sale\Subscription | OpenCart API API</title>
	<link rel="stylesheet" href="http://localhost\opencart-master/docs/api/assets/main.css">
	<script src="http://localhost\opencart-master/docs/api/assets/main.js" defer></script>
</head>

<body class="layout">
	<div class="layout-aside">
	<div class="menu">
			<div class="menu-section">
				<h3>Namespaces</h3>
	<ul>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.html">Opencart</a>
	<ul>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.html">Admin</a>
	<ul>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.html">Controller</a>
			</li>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.html">Model</a>
	<ul>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Catalog.html">Catalog</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Cms.html">Cms</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Customer.html">Customer</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Design.html">Design</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Extension.html">Extension</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Localisation.html">Localisation</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Marketing.html">Marketing</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Report.html">Report</a>
			</li>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Sale.html">Sale</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Setting.html">Setting</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Tool.html">Tool</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.User.html">User</a>
			</li>
	</ul>
			</li>
	</ul>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html">Catalog</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.html">System</a>
			</li>
	</ul>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-none.html">none</a>
			</li>
	</ul>
			</div>

		<div class="menu-section">
			<h3>Classes</h3>
			<ul>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Sale.Order.html">
							Order
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Sale.Returns.html">
							Returns
						</a>
					</li>
					<li class="active">
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Sale.Subscription.html">
							Subscription
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Sale.Voucher.html">
							Voucher
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Sale.VoucherTheme.html">
							VoucherTheme
						</a>
					</li>
			</ul>
		</div>
	</div>
	</div>

	<div class="layout-main">
		<div class="layout-navbar">
	<nav class="navbar">
		<div class="navbar-left">
			<ul class="navbar-links">
				<li>
					<a href="http://localhost\opencart-master/docs/api/index.html">Overview</a>
				</li>
				<li>
					
						<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Sale.html">Namespace</a>
					
				</li>
<li class="active"><a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Sale.Subscription.html">Class</a></li>				<li>
					<a href="http://localhost\opencart-master/docs/api/tree.html">Tree</a>
				</li>
			</ul>
		</div>
		<div class="navbar-right">
	<div class="search" data-elements="http://localhost\opencart-master/docs/api/assets/elements.js">
		<input class="search-input" placeholder="Search class, function or namespace" autofocus>
		<ul class="search-results"></ul>
	</div>
		</div>
	</nav>
		</div>

		<div class="layout-content">
		<h1>
			Class <a href="http://localhost\opencart-master/docs/api/namespace-Opencart.html">Opencart</a>\<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.html">Admin</a>\<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.html">Model</a>\<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Sale.html">Sale</a>\<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Sale.Subscription.html">Subscription</a>
		</h1>


	<table class="classLikeSignatureTable">



		<tr>
			<th><code>extends</code></th>
			<td>
<code><a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html"><span title="Opencart\System\Engine\Model">Model</span></a></code>			</td>
		</tr>

	</table>
		<div class="classLikeDescription">
	<div class="description"><p>Class Subscription</p>
</div>
		</div>

			<div class="classLikeSection">
	<ul class="classTree">
	<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html"><span>Opencart\System\Engine\Model</span></a>


	<ul class="classTree">
	<li>
<b><span class="active">Opencart\Admin\Model\Sale\Subscription</span></b>


	</li>
	</ul>
	</li>
	</ul>
			</div>

		<div class="classLikeSection">
			<b>Located at</b> <a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#8" title="Go to source code">admin\model\sale\subscription.php</a><br>
		</div>



		<table class="table" id="methods">
			<tr>
				<th class="table-heading sortable" colspan="3" title="Switch between natural and alphabetical order">Methods</th>
			</tr>

	<tr class="expandable collapsed" data-order="editSubscription" id="_editSubscription">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#9-19" title="Go to source code">editSubscription</a>(<span>int <var>$subscription_id</var></span>, <span>array&lt;string, mixed&gt; <var>$data</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Edit Subscription</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Edit Subscription</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_editSubscription">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="editPaymentMethod" id="_editPaymentMethod">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#21-31" title="Go to source code">editPaymentMethod</a>(<span>int <var>$subscription_id</var></span>, <span>int <var>$customer_payment_id</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Edit Payment Method</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Edit Payment Method</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_editPaymentMethod">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="editSubscriptionPlan" id="_editSubscriptionPlan">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#33-43" title="Go to source code">editSubscriptionPlan</a>(<span>int <var>$subscription_id</var></span>, <span>int <var>$subscription_plan_id</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Edit Subscription Plan</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Edit Subscription Plan</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_editSubscriptionPlan">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="editRemaining" id="_editRemaining">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#45-55" title="Go to source code">editRemaining</a>(<span>int <var>$subscription_id</var></span>, <span>int <var>$remaining</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Edit Remaining</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Edit Remaining</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_editRemaining">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="editTrialRemaining" id="_editTrialRemaining">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#57-67" title="Go to source code">editTrialRemaining</a>(<span>int <var>$subscription_id</var></span>, <span>int <var>$trial_remaining</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Edit Trial Remaining</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Edit Trial Remaining</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_editTrialRemaining">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="editDateNext" id="_editDateNext">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#69-79" title="Go to source code">editDateNext</a>(<span>int <var>$subscription_id</var></span>, <span>string <var>$date_next</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Edit Date Next</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Edit Date Next</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_editDateNext">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="deleteSubscriptionByCustomerPaymentId" id="_deleteSubscriptionByCustomerPaymentId">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#81-90" title="Go to source code">deleteSubscriptionByCustomerPaymentId</a>(<span>int <var>$customer_payment_id</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Delete Subscription By Customer Payment ID</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Delete Subscription By Customer Payment ID</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_deleteSubscriptionByCustomerPaymentId">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getSubscription" id="_getSubscription">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#92-113" title="Go to source code">getSubscription</a>(<span>int <var>$subscription_id</var></span>): array&lt;string, mixed&gt;</code>


	<div class="expandable-collapsedView">
		<p>Get Subscription</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Subscription</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getSubscription">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getSubscriptionByOrderProductId" id="_getSubscriptionByOrderProductId">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#115-127" title="Go to source code">getSubscriptionByOrderProductId</a>(<span>int <var>$order_id</var></span>, <span>int <var>$order_product_id</var></span>): array&lt;string, mixed&gt;</code>


	<div class="expandable-collapsedView">
		<p>Get Subscription By Order Product ID</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Subscription By Order Product ID</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getSubscriptionByOrderProductId">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getSubscriptions" id="_getSubscriptions">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#129-221" title="Go to source code">getSubscriptions</a>(<span>array&lt;string, mixed&gt; <var>$data</var></span>): array&lt;int, array&lt;string, mixed&gt;&gt;</code>


	<div class="expandable-collapsedView">
		<p>Get Subscriptions</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Subscriptions</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getSubscriptions">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getTotalSubscriptions" id="_getTotalSubscriptions">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#223-270" title="Go to source code">getTotalSubscriptions</a>(<span>array&lt;string, mixed&gt; <var>$data</var> = []</span>): int</code>


	<div class="expandable-collapsedView">
		<p>Get Total Subscriptions</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Total Subscriptions</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getTotalSubscriptions">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getTotalSubscriptionsByStoreId" id="_getTotalSubscriptionsByStoreId">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#272-283" title="Go to source code">getTotalSubscriptionsByStoreId</a>(<span>int <var>$store_id</var></span>): int</code>


	<div class="expandable-collapsedView">
		<p>Get Total Subscriptions By Store ID</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Total Subscriptions By Store ID</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getTotalSubscriptionsByStoreId">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getTotalSubscriptionsBySubscriptionStatusId" id="_getTotalSubscriptionsBySubscriptionStatusId">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#285-296" title="Go to source code">getTotalSubscriptionsBySubscriptionStatusId</a>(<span>int <var>$subscription_status_id</var></span>): int</code>


	<div class="expandable-collapsedView">
		<p>Get Total Subscriptions By Subscription Status ID</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Total Subscriptions By Subscription Status ID</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getTotalSubscriptionsBySubscriptionStatusId">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="addHistory" id="_addHistory">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#298-312" title="Go to source code">addHistory</a>(<span>int <var>$subscription_id</var></span>, <span>int <var>$subscription_status_id</var></span>, <span>string <var>$comment</var> = <span class="php-str">''</span></span>, <span>bool <var>$notify</var> = <span class="php-kw">false</span></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Add History</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Add History</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_addHistory">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getHistories" id="_getHistories">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#314-335" title="Go to source code">getHistories</a>(<span>int <var>$subscription_id</var></span>, <span>int <var>$start</var> = <span class="php-num">0</span></span>, <span>int <var>$limit</var> = <span class="php-num">10</span></span>): array&lt;int, array&lt;string, mixed&gt;&gt;</code>


	<div class="expandable-collapsedView">
		<p>Get Histories</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Histories</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getHistories">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getTotalHistories" id="_getTotalHistories">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#337-348" title="Go to source code">getTotalHistories</a>(<span>int <var>$subscription_id</var></span>): int</code>


	<div class="expandable-collapsedView">
		<p>Get Total Histories</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Total Histories</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getTotalHistories">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getTotalHistoriesBySubscriptionStatusId" id="_getTotalHistoriesBySubscriptionStatusId">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-admin.model.sale.subscription.html#350-361" title="Go to source code">getTotalHistoriesBySubscriptionStatusId</a>(<span>int <var>$subscription_status_id</var></span>): int</code>


	<div class="expandable-collapsedView">
		<p>Get Total Histories By Subscription Status ID</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Get Total Histories By Subscription Status ID</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getTotalHistoriesBySubscriptionStatusId">#</a>
		</td>
	</tr>
		</table>
		<table class="table">
			<tr>
				<th class="table-heading">Methods inherited from <a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html"><span>Opencart\System\Engine\Model</span></a></th>
			</tr>
			<tr>
				<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html#___construct">__construct()</a>, <a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html#___get">__get()</a>, <a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html#___set">__set()</a>, <a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html#___isset">__isset()</a></code>				</td>
			</tr>
		</table>













		<table class="table">
			<tr>
				<th class="table-heading">Properties inherited from <a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html"><span>Opencart\System\Engine\Model</span></a></th>
			</tr>
			<tr>
				<td class="table-cell">
<code><var><a href="http://localhost\opencart-master/docs/api/Opencart.System.Engine.Model.html#$registry">$registry</a></var></code>				</td>
			</tr>
		</table>






		</div>

		<div class="layout-footer">
			OpenCart API API documentation generated by <a href="https://www.apigen.org">ApiGen dev-master</a>
		</div>
	</div>

	<div class="layout-rest">
		<div class="navbar"></div>
	</div>
</body>
</html>
